# $Id: PKGBUILD 176866 2013-02-02 03:18:03Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributer: Jason Chu <jason@archlinux.org>

pkgname=speex
pkgver=1.2rc1
pkgrel=3
pkgdesc="A free codec for free speech"
arch=(i686 x86_64)
url="http://www.speex.org/"
license=(BSD)
depends=(libogg)
options=('!libtool')
source=(http://downloads.us.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('c4438b22c08e5811ff10e2b06ee9b9ae')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
